const state = {
    visibleMore: false
};

const mutations = {
    TOGGLE_VISIBLE: state => {
        state.visibleMore = !state.visibleMore;
    },
    CLOSE_MORE: state => {
        state.visibleMore = false;
    }
};

const actions = {
    toggleVisible({ commit }) {
        commit('TOGGLE_VISIBLE');
    },
    closeMore({ commit }) {
        commit('CLOSE_MORE');
    }
};

export default {
    namespaced: true,
    state,
    mutations,
    actions
};
